jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Mon, 5 Jan 2026 04:35:14 +0000 (17:35 +1300)
committerVladimir Petko <vladimir.petko@canonical.com>
Mon, 5 Jan 2026 04:35:14 +0000 (17:35 +1300)
commit0fbf2f84536505a25baeec1060fcf07b21bde9aa
treeaa1d9d01702b16bfaaa81bb037042a71f408d42c
parenta4d97cbe8fdc0b702b54dabd4fb1e8891ee18ad8
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk